package com.sxfq.loansupermarket.backsystem.modular.theTest.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.sxfq.loansupermarket.backsystem.modular.theTest.entity.TestQuestionsInfo;
import com.sxfq.loansupermarket.backsystem.modular.theTest.entity.UserForTestInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 考試中dao
 *
 * @author py
 * @Date 2018年2月4日23:05:54
 */
public interface TestingDao extends BaseMapper<UserForTestInfo> {
    List<TestQuestionsInfo> getQueryPage(@Param("page") Page<TestQuestionsInfo> page, Map<String, Object> params);

    List<UserForTestInfo> getScorePage(@Param("theTestId") String theTestId, @Param("userId") String userId);

    void updateScore(@Param("theTestId") String theTestId, @Param("testScores") Double testScores, @Param("userId") int userId);
}
